-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Replace ImageList with QListWidget implementation #1670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for your pr @XuKang371322, and congrats on making the first one.
.gitignore
Outdated
| .DS_Store | ||
| .idea/ | ||
| /.vscode | ||
| /run.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Those were my local editor files. Removed the .vscode and updated the PR.
labelme/app.py
Outdated
| self.importDirImages(filename, load=False) | ||
| else: | ||
| self.filename = filename | ||
| self.filename:str|types.NoneType = filename |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add from __future__ import annotations so that this is compatible with python3.9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the tip! I've added from future import annotations to the files for 3.9 compatibility.


I made the following changes:
len(ImageList) >> fileListWidget.countImageList.index(text) >> findListRow(text)ImageList[text] >> fileListWidget.findItems(text)This is my first time submitting a PR to this project. Thank you for the opportunity to contribute. If there are any issues with my code or the PR process, or if any changes are needed, please don't hesitate to let me know. I'm more than happy to learn and make revisions. Thank you for your time and review!